package com.nmtx.springmvc.doc.common;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.databind.SerializationFeature;

public class ObjectMapper extends com.fasterxml.jackson.databind.ObjectMapper{
    private static final long serialVersionUID = -1451742336031143397L;

    public ObjectMapper() { 
        super();
        this.setSerializationInclusion(JsonInclude.Include.NON_NULL);
        this.configure(SerializationFeature.WRITE_NULL_MAP_VALUES, false);
        this.configure(SerializationFeature.WRITE_DATES_AS_TIMESTAMPS, false);
    }
}
